package dancrawler.proto.cmd;

import dancrawler.proto.cmd.NetCommand;
import dancrawler.server.netMsg;

/**
 *
 */
public abstract class CmdHandler implements NetCommand {
    protected int[] args = new int[0];
    public abstract void handleCmd(netMsg msg);
    @Override
    public int getNumArgs()
    {
        return args.length;
    }
    @Override
    public int getArgSize(int n)
    {
        if(n >= args.length || n < 0)
        {
            return 0;
        }
        return args[n];
    }
}
